//
//  UINavgationController+MVVM.swift
//  MVVM_BaseViewController
//
//  Created by alyadan on 2016/10/13.
//  Copyright © 2016年 alyadan. All rights reserved.
//

import Foundation

extension UINavigationController {
    public func pushVcModel(vcModel:MVVM_BaseVCModel, animated:Bool = true, vcImpIndex:Int = 0){
        let vc = vcModel.creatViewController(vcIndex: vcImpIndex)
        guard let viewController = vc else {
            print("please override viewControllerWithImpIndex method!!!")
            return
        }
        pushViewController(viewController, animated: animated)
    }
    
}
